﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin_cms/admin_master.master" AutoEventWireup="true" CodeFile="admin_manager_news.aspx.cs" Inherits="hydevmanager_admin_manager_news" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <div class="all_khung_form1">
        <div class="top_khung_form1" style="margin-bottom:10px;">
            <h5>
                Sửa, xóa tin tức</h5>
        </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdatePanel runat="server" ID="upn">
        <ContentTemplate>
            <asp:GridView runat="server" ID="grAllNews" AutoGenerateColumns="false" CssClass="grid_menu_all_style"
                RowStyle-CssClass="grid_rows" OnRowCommand="news_grAll_click" Width="100%">
                <Columns>
                    <asp:BoundField HeaderText="ID" DataField="idnews" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                    <asp:BoundField HeaderText="Tên bài viết" DataField="title" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                    <asp:BoundField HeaderText="CreateBy" DataField="CreateBy" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                        <asp:BoundField HeaderText="Createtime" DataField="Createtime" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                        <asp:BoundField HeaderText="UpdateBy" DataField="updateby" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                        <asp:BoundField HeaderText="Updatetime" DataField="updatetime" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                   <asp:BoundField HeaderText="UpdateByKt" DataField="updatebykt" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                         <asp:BoundField HeaderText="UpdateByND" DataField="updatebynd" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
                    <asp:TemplateField HeaderText="TOP" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lktop" Width="16px" CommandArgument='<%#Eval("idnews")+"|top|"+Eval("istop") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("istop")))%>' ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="HOT" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkhot" Width="16px" CommandArgument='<%#Eval("idnews")+"|hot|"+Eval("ishot") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("ishot")))%>' ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="DuyệtKT" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lbkythuat" Width="16px" CommandArgument='<%#Eval("idnews")+"|browrs|"+Eval("status") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("status"))) %>'  ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="DuyệtND" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lbnoidung" Width="16px" CommandArgument='<%#Eval("idnews")+"|ktnd|"+Eval("status1") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("status1"))) %>' Enabled="true"  ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="..." ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <a href='admin_add_news.aspx<%#Eval("link_web") %>&idnew=<%#Eval("idnews") %>' id="aedit">
                                <img src="style/cssTran/img/write_16.png" title="Click for Edit" /></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkdelete" Width="16px" CommandArgument='<%#Eval("idnews")+"|delete|0" %>'>
                            <img alt='' src='style/cssTran/img/close_16.png' title='Click to Delete' /></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <a href='admin_add_news.aspx' class='a_themMenu'>
                <img src="style/cssTran/img/them_tin.jpg" /></a>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>
